Skip to content

Conversation

@zachmu
Copy link
Member

@zachmu zachmu commented Apr 17, 2025

This PR fixes issues when using bindvars in a couple different places in certain queries. It introduces a new LiteralExpression so that it GMS and Doltgres implementations of literal values can be used interchangeably during planning and analysis.

Relies on dolthub/go-mysql-server#2946

@zachmu zachmu requested a review from Hydrocharged April 17, 2025 23:57
@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2025

Main PR
covering_index_scan_postgres 341.82/s 338.65/s -1.0%
index_join_postgres 154.76/s 155.49/s +0.4%
index_join_scan_postgres 185.03/s 185.65/s +0.3%
index_scan_postgres 12.64/s 12.55/s -0.8%
oltp_point_select 2654.26/s 2634.46/s -0.8%
oltp_read_only 1860.84/s 1842.20/s -1.1%
select_random_points 117.25/s 116.08/s -1.0%
select_random_ranges 129.42/s 129.05/s -0.3%
table_scan_postgres 11.80/s 11.84/s +0.3%
types_table_scan_postgres 5.48/s 5.57/s +1.6%

@github-actions
Copy link
Contributor

Main PR
Total 42090 42090
Successful 16361 16361
Failures 25729 25729
Partial Successes1 5530 5530
Main PR
Successful 38.8715% 38.8715%
Failures 61.1285% 61.1285%

Footnotes

  1. These are tests that we're marking as Successful, however they do not match the expected output in some way. This is due to small differences, such as different wording on the error messages, or the column names being incorrect while the data itself is correct.

Copy link
Collaborator

@Hydrocharged Hydrocharged left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

// Value returns the literal value.
func (l *Literal) Value() any {
// LiteralValue implements the sql.LiteralExpression interface
func (l *Literal) LiteralValue() interface{} {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember way back you mentioned that we should abandon interface{} and use any now, but I've noticed you using interface{} for a few PRs now. Should we go back to interface{}?

@zachmu
Copy link
Member Author

zachmu commented May 1, 2025

Superseded by #1437

@zachmu zachmu closed this May 1, 2025
@jennifersp jennifersp deleted the zachmu/prepared3 branch August 14, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants